package com.iotstudio.embeddedcloudplatform.dao;

import com.iotstudio.embeddedcloudplatform.POJO.DO.UserAuth;
import org.apache.ibatis.annotations.Param;

public interface UserAuthMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserAuth record);

    int insertSelective(UserAuth record);

    UserAuth selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserAuth record);

    int updateByPrimaryKey(UserAuth record);

    UserAuth getUserAuthByIdentifyTypeAndIdentifierAndCredential(
            @Param("identifyType") Integer identifyType,
            @Param("identifier") String identifier,
            @Param("credential") String credential
    );

    int deleteByUserId(String userId);
}